package com.spring.gop.proj.dao;


import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.spring.gop.proj.dao.mapper.UserInfoMapper;
import com.spring.gop.proj.interfaces.UserInfoDao;
import com.spring.gop.proj.model.MyPoint;
import com.spring.gop.proj.model.Qna;
import com.spring.gop.proj.model.User;

@Repository
public class UserInfoDaoImpl implements UserInfoDao{
	@Autowired
	UserInfoMapper userinfomapper;
	
	public void delUser(String member_id){
		userinfomapper.delUser(member_id);
		}
	
	public void updateUser(String member_email, String member_phone, String member_id){
		userinfomapper.updateUser(member_email, member_phone, member_id);
	}
	
	public void updatePwd(String member_pw,String member_id){
		userinfomapper.updatePwd(member_pw, member_id);
	}
	
	public List<MyPoint> selectIdMyPoint(String member_id, String point_title) {
		return userinfomapper.selectIdMyPoint(member_id, point_title);
	}
	
	public Qna selectQnaForId(Map<String, Object> map) {
		return userinfomapper.selectQnaForId(map);
	}
}
